package com.chen.pojo;

import com.sun.istack.internal.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("type")
public class Type {
    private Long id;
    @NotNull
    private String name;

    private List<Blog> blogs = new ArrayList<>();
}
